@import './../../../_variables';

:host {
  overflow: hidden !important;
}

add-task-bar {
  margin: 0 auto $s * 2;
  max-width: 628px;

  ::ng-deep input {
    box-shadow: none !important;
  }
}

h1 {
  margin: $s * 2 0;
  text-align: center;
}

h2 {
  text-align: center;
}

.wrapper {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: $transition-enter;
  overflow: hidden;

  &.isFadeOut {
    transition: $transition-ultra-fast;
    opacity: 0;
  }
}

.work-view-header {
  padding: 0.5 * $s;

  position: relative;
  min-height: $bar-height-small;
  display: flex;
  justify-content: center;
  align-items: center;
  @include mq(xs) {
    padding: 2 * $s 0;
  }

  @include smallMainContainer() {
    .label {
      display: none;
    }

    p {
      margin: 0;
    }
  }

  @include mq(xs, max) {
    .label {
      display: none;
    }
    p {
      margin: 0;
    }
  }
}

.completed-tasks-heading {
  margin: $s;
  margin-top: $s * 2;
}

.backlog-heading {
  margin: $s;
}

.status-bar {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  padding: 5px 0;
  user-select: none;
  -webkit-user-select: none; /* Safari */

  .item {
    margin: 0 1.5 * $s;
    text-align: center;
    position: relative;
  }

  .controls {
    text-align: center;
    margin: $s 0;
    white-space: nowrap;
  }

  .label {
    margin-right: $s;
  }

  .time-val {
  }

  .no-wrap {
    display: inline-block;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.take-a-break-reset-btn {
  display: none;
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 4;
  transform: translateY(-50%) scale(0);
  transition: $transition-standard;
  opacity: 0;
  visibility: hidden;
  @include mq(xs) {
    display: block;
  }
}

.item:hover .take-a-break-reset-btn {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  visibility: visible;
}

.hide-controls-icon {
  transform: rotate(90deg);
}

.finish-day-button-wrapper {
  text-align: center;
  margin: $s * 2 0 $s;
  white-space: nowrap;

  button {
    margin: 0 $s;
  }
}

.backlog,
.today {
  position: absolute;
  left: 0;
  //transition: max-height, min-height 500ms ease-in-out;
  //transition: all 500ms linear;
  width: 100%;

  &.isAnimatable {
    transition: $transition-standard;
  }

  task-list {
    padding-top: 0;
  }

  task-list ::ng-deep > .task-list-inner {
    min-height: 50px;
  }
}

.today {
  overflow-x: hidden;
  @include scrollYImportant();
  top: 0;
  bottom: 0;
}

.backlog {
  bottom: 0;

  .inner-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
}

// PLAN MODE
.planning-mode-header {
  text-align: center;

  h1,
  h2,
  h3 {
    margin: 0;
    padding: 0;
  }
}

.planning-mode-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 2 * $s;
  margin: $s;

  @include mq('xs') {
    margin: 0;
  }

  add-task-bar {
    width: 100%;
  }
}

.add-more-or-finish {
  text-align: center;
  padding-bottom: $s;

  .btn-wrapper {
    display: block;

    button {
      min-width: 160px;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-left: $s;
      margin-bottom: $s;

      &:first-child {
        margin-left: 0;
      }
    }
  }
}

.add-scheduled {
  margin-top: $s;
}

.ready-to-work-btn {
  margin-top: $s * 2;

  @include mq(xs) {
    margin-top: $s * 3;
  }
}

.add-task-btn {
  z-index: 45;
  position: fixed;
  right: 50%;
  bottom: $s * 2;
  transform: translateX(50%);

  &.isRight {
    transform: none;
    right: $s * 2;
  }
}
